package memory

import (
	"github.com/patrickmn/go-cache"
	"mall_frontend_api/biz/dal"
	"time"
)

var client *cache.Cache

var dao = dal.NewInitDAO()

func MustInit() {
	client = cache.New(5*time.Minute, 10*time.Minute)
}

func GetClient() *cache.Cache {
	return client
}
